package com.tx.review.inner;

/**
 *
 */
public class Test {
    public static void main(String[] args)  {

    }

    public void test(final int b) {
        final int a = 10;
        int c = 20;  //jdk8后不加final不会报错，会默认有一个final
        new Thread(){
            public void run() {
                System.out.println(a);
                System.out.println(b);
//                c=33; //显示修改会报错
                System.out.println(c);
            };
        }.start();
    }
}